﻿@model IEnumerable<VNWIKI_WEB.User>

@{
    ViewBag.Title = "ControlPanel - User Management - Web chia se anh vnwiki";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>User List</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            AccountName
        </th>
        <th>
            Name
        </th>
        <th>
            Email
        </th>
        <!--
        <th>
            Password
        </th>
        -->
        <th>
            Permision
        </th>
        <th>
            CreateDate
        </th>
        <th>
            DeleteDate
        </th>
        <th>
            Deleted
        </th>
        <th>
            Admin
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.AccountName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <!--
        <td>
            @Html.DisplayFor(modelItem => item.Password)
        </td>
        -->
        <td>
            @Html.DisplayFor(modelItem => item.Permision)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeleteDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Deleted)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Admin)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
